﻿@model SimpleScrum.Models.LocalPasswordModel
@{
    ViewBag.Title = "Manage Account";
}
<div class="row-fluid">
    <div class="span11 offset1">
        <hgroup class="title">
            <h3>@ViewBag.Title</h3>
            <h4 class="title message"></h4>
        </hgroup>
        <div class="text-warning">@ViewBag.StatusMessage</div>
        <div class="text-success">You're logged in as <strong>@User.Identity.Name</strong>.</div>
    </div>
</div>
<div class="row-fluid">
    <div class="span11 offset1">
        <div class="span8">
            <div class="span10">
                <h4 class="modal-header">Customize Your Information</h4>
                <br/>
                <div class="btn btn-warning">
                    <span class="unlink">@Html.ActionLink("Change Info","ChangeInformation","Account")</span>
                </div><br/><br/><br/>
            </div>
            @if (ViewBag.HasLocalPassword)
            {
                @Html.Partial("_ChangePasswordPartial")
            }
            else
            { 
                @Html.Partial("_SetPasswordPartial")
            }
        </div>
        <div class="span3 offset1">
            <section id="externalLogins">
                @Html.Action("RemoveExternalLogins")

                <h3>Add an OAuth login</h3>
                @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
            </section>
        </div>
    </div>
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
